package com.zbb.order.model.po;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单图片表
 * </p>
 *
 * @author itcast
 */
@Data
@TableName("order_picture")
public class Picture implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 订单详情id
     */
    private String orderDetailId;

    /**
     * 订单快照id
     */
    private String orderSnapshotId;

    /**
     * 图片链接
     */
    private String url;

    /**
     * 图片顺序
     */
    private Integer sequence;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    public Picture(String id, String orderDetailId, String orderSnapshotId, String url, Integer sequence, LocalDateTime createTime, LocalDateTime updateTime) {
        this.id = id;
        this.orderDetailId = orderDetailId;
        this.orderSnapshotId = orderSnapshotId;
        this.url = url;
        this.sequence = sequence;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }
}
